package Day07_24;
import java.util.*;
public class Reception {
    public static void main(String[] args) {
        System.out.println("欢迎来到酒店，管理信息系统！");
        System.out.println("功能编号:  [1]:预定房间 [2]:退订房间 [3]:打印房间信息 [4]:退出 ");
        System.out.print("请输入编号: ");
        Scanner S = new Scanner(System.in);
        Hotel_Management_System h = new Hotel_Management_System();

        while(true) {
            int s = S.nextInt();
            if(s==1) {
                System.out.print("请输入预定房间号：");
                int room = S.nextInt();
                h.ReserveRoom(room);
            }
            else if(s==2) {
                System.out.print("请输入退订房间号：");
                int room = S.nextInt();
                h.Check_Out(room);
            }
            else if(s==3)
                h.LookAllRoom();
            else if(s==4)
                return ;
            else
                System.out.println("输入编号有误，请重新输入！");

        }
    }
}
